<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{@$goods->goods_name}}-{{$SEO['title']}}</title>
    <meta name="Keywords" content="{{$SEO['keywords']}}"/>
    <meta name="description" content="{{@$goods->goods_name}},{{@$goods->goods_pet_name}},{{@$goods->goods_desc}}" />

    <!--公用css引用-->
    @include('front.common.style')

    <!--END/公用css引用-->
    <link rel="stylesheet" href="{{asset('/dist/css/index.css')}}">
    <link rel="stylesheet" href="../dist/css/detail.css">

</head>
<body>

        <!--公共头部-->
@include('front.common.header')
        <!--END/公共头部-->

        @inject('goodsService','App\Interfaces\GoodsService')

        @inject('pictureService','App\Interfaces\PictureService')

        @inject('commentService','App\Interfaces\CommentService')

        @inject('brandService','App\Interfaces\BrandService')

        @inject('categoryService','App\Interfaces\CategoryService')

        @inject('cartService','App\Interfaces\CartService')

        @inject('userCollectionService','App\Interfaces\UserCollectionService')

        @inject('productSkuService','App\Interfaces\ProductSkuService')

        @inject('couponService','App\Interfaces\CouponService')

        @inject('discountService','App\Interfaces\DiscountService')

<!--内容部分-->
        <?php $total_number = $cartService->getCartNumber();?>
        <!--页面主体-->
        @if(isset($goods) && ($goods->is_on_sale==1 || $proview==1 ))
            <?php

            $productSkus = $productSkuService->getByGoodsId($goods->goods_id);
//dd($productSkus);
            $category = $categoryService->get($goods->cat_id);

            $getPath = $categoryService->getPath($goods->cat_id);

            $similarGoods = $goodsService->getSimilar($goods->goods_id);


            $total_number = $cartService->getCartNumber();
            if(empty($total_number)) $total_number=0;

            $goodsInCollection=isset($user)?$userCollectionService->isInCollection($user->id,'GOODS',$goods->goods_id):false;
            $shopInCollection=isset($user)?$userCollectionService->isInCollection($user->id,'SHOP',$goods->shop_id):false;

            $shopObj = $goodsService->getShop($goods->shop_id);

            ?>

        <div class="inbox" style="overflow: visible;">
            <div class="crumbs">

                @if($getPath)
                    @foreach($getPath as $key=>$value)
                        <a href="{{env('URL')}}/cat/{{$value->cat_id}}" class="link">{{$value->cat_name}}</a> >
                    @endforeach
                @endif
                <span title="{{$goods->goods_name}}">{{$goods->goods_name}}</span>
            </div>


            <!--商品详情展示-->
            <div class="goods-detail fn-clear">

                <!--图片展示组件-->
                <div class="show-pic">
                    <?php
                            $goods_gallery = $goodsService->getGoodsGallery($goods->goods_id);
                            $goods_info = $goodsService->get($goods->goods_id);
                     ?>

                    <div id="preview" class="spec-preview">
                        <span class="jqzoom">

                            @if($goods_info && $goods_info->goods_thumb)
                                    <img jqimg="{{$pictureService::thumb($goods_info->goods_thumb, 800, 800)}}" src="{{$pictureService::thumb($goods_info->goods_thumb, 400, 400)}}" />
                            @endif
                        </span>
                    </div>

                    <!--缩图开始-->
                    <div id="thumbScroll" class="lrscroll scroll-with-thumb">
                        <div class="scrollcon">
                            <ul class="scrolllist fn-abs">
                                {{--<li>
                                    <img alt="{{$goods->goods_name}}" data-bimg="{{$pictureService::thumb($goods->goods_thumb, 800, 800)}}"  data-mimg="{{$pictureService::thumb($goods->goods_thumb, 400, 400)}}" src="{{$pictureService::thumb($goods->goods_thumb, 70, 70)}}" onmousemove="preview(this);">
                                </li>--}}

                                @if($goods_gallery->count())

                                    <?php $goods_pic = $goods_gallery->toArray()[0];//dd($goods_pic);?>

                                    <?php

                                        for ($i=1; $i < 9; $i++) {
                                        $pic = $goods_pic['pic_'.$i];
                                    ?>

                                    @if(!empty($pic))
                                    <li>
                                        <img alt="{{$goods->goods_name}}" data-bimg="{{$pictureService::thumb($pic, 800, 800)}}"  data-mimg="{{$pictureService::thumb($pic, 400, 400)}}" src="{{$pictureService::thumb($pic, 70, 70)}}" onmousemove="preview(this);">
                                    </li>
                                    @endif
                                    <?php
                                        }

                                    ?>
                                @endif

                            </ul>
                        </div>
                        <a class="prev" href="javascript:;">&lt;</a>
                        <a class="next" href="javascript:;">&gt;</a>
                        <div class="scrollnav"></div>
                    </div>
                    <!--END/缩图结束-->

                </div>
                <!--END/图片展示组件-->



                <!--信息展示-->
                <div class="show-params @if(!$shopObj->is_show) hide-shop @endif">
                    <div class="fn-fl">
                        @if(!$shopObj->is_show&&$shopObj->shop_name=='阿福易购')
                        <a class="fn-fr"><i class="icon icon-flag1">阿福<br>自营</i></a>
                        @endif

                        @if($goods->brand_id)
                        <?php $brand = $brandService->get($goods->brand_id);//dd($brand); ?>
                        <div class="flag">
                            <img class="fn-fl" src="{{$pictureService::thumb($brand->brand_logo, 56, 38)}}" alt="{{$brand->brand_name}}">
                            <p class="small fn-dib-otw">
                                <span title="">{{$brand->brand_name}}</span>
                                <br>
                                <span title="{{$brand->brand_desc}}">{{$brand->brand_desc}}</span>
                            </p>
                        </div>
                        @endif
                        <div class="des-param">
                            <span class="goods-name" title="{{$goods->goods_name}}">{{$goods->goods_name}}</span>
                            <p class="goods-sub-name fn-dib-otw">{{$goods->goods_pet_name}}</p>
                            <p class="des">{{$goods->goods_desc}}</p>
                            <div class="price">
                                @if($goods->discount)
                                <span>折扣价</span><strong class="num">￥{{$goods->goods_real_price}}</strong>
                                <span id="TipDiscount" class="tip-discount" data-title="{{$goods->discount['discount_label']}}<BR>
                                折扣：
                                <?php
                                if ($goods->discount['discount_value'] % 10 == 0) {
                                    echo $goods->discount['discount_value'] / 10;
                                }else{

                                    echo intval($goods->discount['discount_value'] / 10) . '.' . $goods->discount['discount_value'] % 10;;
                                }
                                ?> 折<BR>
                                期限：{{str_limit($goods->discount['start_time'], 10, '')}} 至 {{str_limit($goods->discount['end_time'], 10, '')}}"> <s></s>限时折扣</span>
                                @else
                                <span>价格</span><strong class="num">￥{{$goods->shop_price}}</strong>
                                @endif

                                <span class="fn-ml20 text-color-7 font-14">国内参考价<span class="fn-ml6">&nbsp;</span>¥{{$goods->market_price}}</span>
                            </div>
                        </div>


                        <div class="activity fn-cf">

                            <?php $coupons = @$couponService->getCanReceiveCoupon(@$goods->goods_id); ?>
                            @if(@$coupons)

                                @if($coupons->count()>0)
                                    <div class="fn-fl w-2em fn-mr20">促销</div>
                                @endif
                                <ul class="fn-fl">
                                @foreach($coupons as $key=>$item)
                                @if($item->amount<=$item->receive_amount) <?php continue; ?> @endif

                                    <li class="fn-mb4">
                                        <span class="param-item">
                                            <span class="bl-label label-primary">优惠券</span>

                                            <span class="t-org1 fn-ml10">
                                            <?php
                                                switch ($item->type) {
                                                    case '1':
                                                        echo '全场通用券';
                                                        break;
                                                    case '2':
                                                        echo '商品优惠券';
                                                        break;
                                                    case '3':
                                                        echo '分类优惠券';
                                                        break;
                                                    case '4':
                                                        echo '店铺优惠券';
                                                        break;
                                                    case '5':
                                                        echo '品牌优惠券';
                                                        break;
                                                }//end switch()
                                            ?> @if($item->limit_fir) 满{{$item->limit_fir}}减 @endif {{$item->value}}元</span>
                                            <a class="J-getCoupon link fn-ml20 t-gray4"  data-id="{{$item->id}}" data-price="{{$item->value}}" data-name="{{$item->新增优惠券}}" data-time="{{date('Y.m.d', strtotime ($item->end_time))}}" data-reg="满{{$item->limit_fir}}减{{$item->value}}" data-num="1" href="javascript:;">立即领取&gt;</a>
                                        </span>
                                    </li>
                                @endforeach
                                </ul>
                            @endif
                        </div>

                        <ul class="more-param">

                            <li>
                                <span class="fn-mr20">运费</span>
                                @if($goods->type==0)
                                <span class="param-item">经开一号库 至
                                    <!--注意选DOM结构不要随便更改，可能会导致出错-->
                                    <div class="fn-dib address-plugin">
                                        <div class="store-selector">
                                            <input type="hidden" class="store-input" name="Address">
                                            <div class="text"><div></div><span class="caret-b transform"></span></div>
                                            <div onclick="$(this).parent().removeClass('hover')" class="close">×</div>
                                        </div>
                                    </div>
                                    <?php $shipFei=config('shipping-price'); ?>
                                    @if($goods->shop_price>=$shipFei['freePostAmount'])
                                        免运费
                                        <span class="js-expressPrice fn-hide"></span>
                                    @else
                                        运费<span class="js-expressPrice">{{$shipFei['postage']}}</span>元
                                        <span class="bl-label label-brd-red">满{{$shipFei['freePostAmount']}}包邮</span>
                                    @endif
                                </span>
                                @else
                                    <span class="bl-label label-brd-red">E贸易商品全场包邮</span>
                                @endif
                            </li>
                            <li class="fn-hide">
                                <span class="fn-mr20">关税</span>
                                @if($goods->type ==0)
                                    <span class="param-item">商品价格已包含关税</span>
                                @else
                                    <span class="param-item">
                                        <span>本商品适用税率为{{$category->tariff_percent}}%，若订单关税≤50元则免征</span>
                                        <div class="drop-tip fn-dib fn-ml6">
                                            <div class="drop-btn">
                                                <span class="text">关税收取规则</span><span class="caret-b transform"></span>
                                            </div>
                                            <div class="drop-con" style="width:250px;">
                                                <p>关税=购买单价*件数*商品税率</p>
                                                <p>注：不同品类商品的税率不同。<a class="link text-color-10" href="/help/tariff" target="_blank">了解税率</a></p>
                                            </div>
                                        </div>
                                    </span>
                                @endif
                            </li>
                            <li class="J-selParam sel-list">
                                @if(!empty($productSkus))
                                    @foreach($productSkus['product_attribute_arr'] as $key=>$product_attribute_arr)
                                    <div>
                                        <label>{{$product_attribute_arr['attribute_name']}}</label>
                                        <ul class="list-tags fn-dib">
                                            @foreach($product_attribute_arr['attribute_value_arr'] as $keys=>$attribute_value)

                                            <li class="@if($attribute_value['attribute_value_status']==0)disabled @elseif($attribute_value['attribute_value_status']==1)on @endif" data-id="{{$attribute_value['attribute_value_id']}}"><span>{{$attribute_value['attribute_value_name']}}</span><i class="icon"></i></li>
                                            @endforeach()
                                        </ul>
                                        <input class="J-param" data-id="1" data-sort="1" type="hidden">
                                    </div>
                                    @endforeach
                                @endif

                            </li>
                            <li>
                                <span class="fn-mr20">数量</span>
                    <span class="param-item">
                        <div class="num-tool fn-dib fn-mr12">
                            <a class="r-btn">＋</a>
                            <a class="l-btn">－</a>
                            @if($goods->discount)
                                <input data-price="{{$goods->goods_real_price}}" data-type="{{$goods->type}}" class="num-input" type="text" value="1" min="1" max="{{$goods->goods_number}}">
                            @else
                                <input data-price="{{$goods->shop_price}}" data-type="{{$goods->type}}" class="num-input" type="text" value="1" min="1" max="{{$goods->goods_number}}">
                            @endif
                        </div>
                        @if($goods->goods_number<=10)
                        <span class="fn-mr10 font-14 text-color-1">剩余{{$goods->goods_number}}件</span>
                        @endif
                        <!--提示框-->
                        <div class="fn-rel fn-dib">
                            <div class="js-payTip warning-tip bl-tip-box tip-skin-def">
                                <div class="J-box LJ-box"><span class="J"></span><i class="J"></i></div>
                                <div class="bl-tip-con">
                                    <span>
                                        抱歉，您已超过海关限额
                                        <span class="fn-rel more-tip-btn">
                                            <span class="text-color-danger warning-more">￥1000</span>
                                            <div class=" bl-tip-box tip-skin-gray">
                                                <div class="J-box TJ-box"><span class="J"></span><i class="J"></i></div>
                                                <div class="bl-tip-con">
                                                    <div class="more-content">
                                                        <p>海关规定：</p>
                                                        <ul>
                                                            <li>① 消费者购买进口商品，以“个人自用，合理数量”为原则，每单最大购买金额不得超过1000元人民币（不含关税）。</li>
                                                            <li>② 如有优惠活动，则1000元限值适用于订单优惠后的金额。</li>
                                                            <li>③ 如果订单只含单件不可分割商品，则可以超过1000元限制。</li>
                                                        </ul>
                                                    </div>
                                                </div>
                                            </div>
                                        </span>
                                        ，请分次购买
                                    </span>
                                </div>
                            </div>
                        </div>
                        <!--end/提示框-->


                    </span>
                            </li>
                        </ul>
                        <div class="btns fn-mt16 fn-mb30">
                            @if($goods->goods_number==0)
                                <a href="javascript:;" class="fn-btn buy-btn fn-mr6 disabled">库存不足</a>
                            @else
                                <a href="javascript:;" class="js-payBtn fn-btn buy-btn fn-mr6" data-id="{{$goods->goods_id}}">立即购买</a>
                                <a href="javascript:;" class="js-addCart fn-btn cart-btn" data-id="{{$goods->goods_id}}"> <i class="icon icon-cart fn-mr4"></i>加入购物车</a>
                            @endif

                            @if($goodsInCollection)
                                <span class="fav-btn"><i class="icon icon-fav"></i>已收藏</span>
                            @else
                                <a href="javascript:;" class="J-add-collection fav-btn" reference_id="{{$goods->goods_id}}" collection-type="GOODS"><i class="icon icon-noFav"></i>收藏</a>
                            @endif
                        </div>
                        <?php
                            $commPercent=$commentService->countComment($goods_id)==0?100:number_format((($commentService->countGoodComment($goods_id))/($commentService->countComment($goods_id))*100),0);
                        ?>
                        <div class="show-score">
                            <div class="fn-dib bl-score" data-score="0">
                                <div class="bi-score-percent" style="width: {{$commPercent.'%'}}"></div>
                            </div>
                            <span class="score-tip">{{$commPercent}}%</span>
                            <span class="font-14 fn-ml30"><a href="javascript:;" class="js-linkToComment link font-16 "><strong>{{$commentService->countComment($goods_id)}}人</strong></a>评价</span>
                        </div>
                    </div>
                </div>
                <!--END/信息展示-->


                <!--店铺信息-->
                @if(!empty($goods->shop_id)&&$shopObj->is_show)
                <div class="fn-fr store-block">
                    <div class="brand-logo">
                        <a href="/shop/{{@$shopObj->id}}" target="_blank">
                            <img width="180" height="72" src="{{@$pictureService::thumb($shopObj->shop_logo, 180, 72)}}" title="专营店">
                        </a>
                    </div>
                    <div class="ui-brd-box1">
                        <ul class="text-list">
                            <li>
                                <span class="label">店铺：</span>
                                <a class="store-link link" href="/shop/{{@$shopObj->id}}" target="_blank">{{@str_limit($shopObj->shop_name, 20, '...')}}</a>
                            </li>
                            <li>
                                <span class="label">联系：</span>
                                <a class="store-link service link" href="http://wpa.qq.com/msgrd?v=3&amp;uin=3039215126&amp;site=qq&amp;menu=yes" target="_blank" title="联系客服"><i class="icon icon-qq-blue fn-mr10"></i>联系客服</a>
                            </li>
                            <li>
                                <span class="label">发货：</span>
                                <a class="store-link">由保税仓直接发货</a>
                            </li>
                        </ul>

                        <div class="btns">
                            <a href="/shop/{{@$shopObj->id}}" class="fn-btn fn-dib">进入店铺</a>
                            @if($shopInCollection)
                                <a href="javascript:;" class="fn-btn fn-dib text-btn">已收藏</a>
                            @else
                                <a href="javascript:;"  data-id="{{@$shopObj->id}}" data-type="SHOP" class="J-add-collection fn-btn fn-dib text-btn">收藏店铺</a>
                            @endif
                        </div>
                    </div>
                </div>
                @endif
                <!--END/店铺信息-->
                <div class="fn-clear fn-mt4"></div>

            </div>
            <!--END/商品详情展示-->

        </div>
        <!--商品介绍及评论-->
        <div class="inbox detail-box">
            <div class="layout-margin unend">
                <div class="sidebar-end"></div>
                <div class="sidebar-start">
                    <div class="ui-brd-box1">
                        <div class="tit-5 tit-skin-5">
                            <p class="h">同类产品</p>
                        </div>
                        <ul class="bl-imglist bl-imglist-hor">
                            @if($similarGoods)
                                @foreach($similarGoods as $key=>$value)
                                    <?php //dd($value->toArray());
                                        if($key>1) break;
                                    ?>

                                    <li>
                                        <a href="/goods/{{$value->goods_id}}" target="_blank" title="{{$value->goods_name}}">
                                            <img class="lazy img-lazyload" data-src="@if($value->goods_thumb){{$pictureService->thumb($value->goods_thumb, 200, 200)}} @else # @endif" alt="">
                                        </a>
                                        <div class="con">
                                            <a href="/goods/{{$value->goods_id}}" target="_blank" class="tit link" title="{{$value->goods_name}}">{{$value->goods_name}}</a>
                                            <span class="text-color-1 font-18">￥{{$value->shop_price}}</span>
                                        </div>
                                    </li>
                                @endforeach
                            @endif()
                        </ul>
                    </div>
                </div>
<?php $orderGoods = $commentService->getComment($goods_id,$condition,0);?>

                <!--主体部分-->
                <div class="container">
                    <div class="container-inner">
                        <div class="ui-brd-box1 bl-tab tab-skin-tline2">
                            <ul class="tab-head">
                                <li class="tab cur"><a>商品详情</a></li>
                                <li class="js-loadComment tab"><a>用户评价 {{$commentService->countComment($goods_id)}}</a></li>
                                <li class="tab"><a>保税区发货FAQ</a></li>
                            </ul>
                            <div class="tab-con">
                                <div class="tab-show" style="display: block;">
                                    <div class="detail-info">
                                        <!--属性-->
                                        <ul class="ui-cols-3 params">
                                            <li class="col">
                                                <span class="w-7em fn-tr">商品品牌：</span>
                                                <span class="info">

                                                    @if($goods->brand_id)
                                                        {{$brandService->get($goods->brand_id)->brand_name}}
                                                    @endif
                                                </span>
                                            </li>

                                            {{--<li class="col">
                                                <span class="w-7em fn-tr">品牌国：</span>
                                                <span class="info">{{$goods->brandArr->brand_name}}</span>
                                            </li>--}}
                                        </ul>
                                        <!--END/属性-->

                                        <!--跨境购物流程-->
                                        <div class="shop-step">
                                            <div class="step-tit">跨境购物流程</div>
                                            <ul class="ui-cols-5">
                                                <li class="col">
                                                    <i class="icon icon-arrow-r5 arrow"></i>
                                                    <i class="icon icon-step1"></i>
                                                    <p class="info">全球正品采购</p>
                                                </li>
                                                <li class="col">
                                                    <i class="icon icon-arrow-r5 arrow"></i>
                                                    <i class="icon icon-step2"></i>
                                                    <p class="info">运至国内保税区存储</p>
                                                </li>
                                                <li class="col">
                                                    <i class="icon icon-arrow-r5 arrow"></i>
                                                    <i class="icon icon-step3"></i>
                                                    <p class="info">用户下单</p>
                                                </li>
                                                <li class="col">
                                                    <i class="icon icon-arrow-r5 arrow"></i>
                                                    <i class="icon icon-step4"></i>
                                                    <p class="info">海关等政府部门检查清关</p>
                                                </li>
                                                <li class="col">
                                                    <i class="icon icon-step5"></i>
                                                    <p class="info">国内物流配送</p>
                                                </li>
                                            </ul>
                                        </div>
                                        <!--END/跨境购物流程-->

                                        <!--安全-->
                                        <ul class="ui-cols-3 save-cols">
                                            <li class="col">
                                                <div class="inner-wrap">
                                                    <strong class="tit">正品保障</strong>
                                                    <p class="des">所有商品海外直采，全程政府监管</p>
                                                </div>
                                            </li>
                                            <li class="col">
                                                <div class="inner-wrap">
                                                    <strong class="tit">告别传统海淘漫长等待</strong>
                                                    <p class="des">海外商品提前存储在保税区，下单后直接在保税仓发货</p>
                                                </div>
                                            </li>
                                            <li class="col">
                                                <div class="inner-wrap ui-nobrd">
                                                    <strong class="tit">支付便捷售后无忧</strong>
                                                    <p class="des">完全人民币支付，售后服务由阿福易购全程承担</p>
                                                </div>
                                            </li>

                                        </ul>
                                        <!--END/安全-->


                                        <div class="pre">
                                            <div style="text-align:left">{!! $goods->goods_content !!}</div>
                                        </div>
                                    </div>
                                </div>

                                <div class="tab-show">
                                    <div class="js-commentList bl-tab" data-id="{{$goods_id}}">

                                        <div class="js-stat comment-tj">
                                            <div class="show-score">
                                                <div class="fn-dib bl-score-lg">
                                                    <div class="bi-score-percent" style="width: {{$commPercent.'%'}}"></div>
                                                </div>
                                                <span class="score-tip">{{$commPercent.'%'}}</span>
                                                <span class="score-txt">好评</span>
                                                <span class="score-txt">{{$commentService->countComment($goods_id)}}人评价</span>
                                            </div>
                                        </div>
                                        <?php //dd($orderGoods = $commentService->getComment($goods_id));?>
                                        <div class="js-filter com-filter">
                                            <label class="cur">
                                                <input class="js-autoLoad  js-type" data-type="allComment" type="radio" name="commentType" checked>
                                                全部评价({{$commentService->countComment($goods_id)}})</label>
                                            <label>
                                                <input class="js-type" data-type="goodComment" type="radio" name="commentType">
                                                好评（{{$commentService->countGoodComment($goods_id)}}）
                                            </label>
                                            <label>
                                                <input class="js-type" data-type="middleComment" type="radio" name="commentType">
                                                中评（{{$commentService->countMiddleComment($goods_id)}}）
                                            </label>
                                            <label>
                                                <input class="js-type" data-type="badComment" type="radio" name="commentType">
                                                差评（{{$commentService->countBadComment($goods_id)}}）
                                            </label>
                                        </div>
                                        <ul class="js-comList comment-list">
                                            <!--评论-->
                                            <li>
                                                <div class="bl-nodata">
                                                    <div class="nodata-txt">
                                                        <img class="fn-mr6" style="margin-top: 2px;" src="../images/loading-1.gif" alt="">评论加载中...
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                        <div class="pager comment-pager">
                                            <ul class="js-pager pagination"></ul>
                                        </div>
                                    </div>

                                </div>
                                <div class="tab-show">
                                    <!--保税区发货FAQ-->
                                    <div class="faq-h">常见问题：</div>
                                    <div class="faq-body">
                                        <div class="faq-q">1. 在阿福易购购物时为什么提示我需要上传身份证信息？</div>
                                        <div class="faq-a">您好，因为您购买的是国外商品，商品送到您手中需要经过海关报关流程，根据中国海关要求，公民个人包裹办理入境清关手续,需提交“收件人”身份证明，因此需要您提供身份证信息来完成报关。为了保障您的货物顺利送到手中，请您及时上传身份证信息，感谢您的配合。</div>

                                        <div class="faq-q">2.我之前购买过阿福易购的商品，也上传过身份证信息，以后是否还需要上传呢？</div>
                                        <div class="faq-a">若您通过阿福易购系统已经提交过身份证信息，您就不需要再次上传（身份证信息提交一次即可）。</div>

                                        <div class="faq-q">3.在阿福易购购物我需要支付关税吗？</div>
                                        <div class="faq-a">根据海关总署2010年第43号令及相关规定，个人邮寄进境物品，海关依法征收行邮税，为了提高您的购物体验，阿福易购要求商家最终承担或报销您所需支付的行邮税。基于不同口岸实际操作不同，若海关要求您缴纳行邮税，请您先行缴纳并保留相关凭证，并联系商家进行报销。</div>
                                    </div>

                                    <div class="faq-h">售后问题：</div>
                                    <div class="faq-body">
                                        <div class="faq-q">1.我什么时候才能申请退货？</div>
                                        <div class="faq-a">在您签收商品7天内，您可以在<a class="link" href="/my/order" target="_blank">“我的订单”</a>页面申请售后服务提交退货申请。</div>

                                        <div class="faq-q">2.如果收到商品不满意，我能申请换货吗？</div>
                                        <div class="faq-a">由于海关监管政策严格，阿福易购售出的商品暂不支持换货服务。</div>

                                        <div class="faq-q">3.购买的商品出现质量问题如何处理？</div>
                                        <div class="faq-a">阿福易购海购承诺符合售后 <a href="/help/return-policy" target="_blank" class="link">退货政策</a>的商品，在售后处理周期内，您可以申请退货服务。</div>

                                        <div class="faq-q">4.办理退货周期多久？</div>
                                        <div class="faq-a">一般情况下，自您收到问题商品之日起7天内为您处理完成，各付款方式退款时间请查阅 <a href="/help/refund-instruc" target="_blank" class="link">退款说明</a>。</div>

                                        <div class="faq-q">5.为什么售后申请没有审核通过？</div>
                                        <div class="faq-a">您好，您可在售后申请页面查看审核未通过原因。</div>

                                        <div class="faq-q">6.退货的运费该谁来承担？</div>
                                        <div class="faq-a">具体退货运费说明请参见 <a href="/help/refund-instruc" target="_blank" class="link">退款说明</a>。</div>

                                        <div class="faq-q">7.什么时候可以收到退款？</div>
                                        <div class="faq-a">我们会在接到您的退款申请后第一时间为您办理退款，具体退款时间参见退款说明。</div>

                                        <div class="faq-q">8.如果我拒收了，该如何处理？</div>
                                        <div class="faq-a">如果您拒收了，商品将退回国内指定保税仓库，经售后人员与您联系确认后，您即可联系客服人员办理退款。</div>

                                        <div class="faq-q">9.商品的最大退款金额是怎么算出来的。</div>
                                        <div class="faq-a">商品最大退款金额=商品价格*数量-活动优惠分摊的金额-优惠券优惠分摊的金额+商品关税+邮费分摊的金额。（具体请参见退款说明。）</div>

                                        <div class="faq-q">10.当我发起退货申请时，只要我把包裹退还回来就可以获得退款吗？</div>
                                        <div class="faq-a">当阿福易购签收到您寄回的商品后，确认商品保存良好且不影响二次销售，后续将由客服为您办理退款。阿福易购签收快件不作为是否退款的凭证。</div>

                                        <div class="faq-q">11.在阿福易购购买的商品，是否提供发票？</div>
                                        <div class="faq-a">您好，阿福易购所售跨境海外商品，无法开据国内发票，请您谅解。</div>

                                        <div class="faq-q">12.在阿福易购购买的海外商品，是否有商品所含成分和使用方法的中文标签？</div>
                                        <div class="faq-a">阿福易购是跨境电商，国家相关部门并未要求跨境进口商品贴示中文标签，阿福易购保证您所购买商品为百分百海外正品，请您放心购买！</div>

                                        <div class="faq-q">13.为什么有的国外包装很简单，连外盒、封口都没有？</div>
                                        <div class="faq-a">因为国外更注重环保和便携性，而不是崇尚包装的奢华，大部分国际一线品牌、奢侈品的包装也很简单，比如产自欧美、日韩的化妆品，大部分无外盒，不塑封，开口处也没有封口贴。</div>

                                        <div class="faq-q">14.国外商品包装上的保质期、生产日期怎么看？</div>
                                        <div class="faq-a">国外的商品包装上一般不会单独列出保质期是多长，一般只会在产品包装上标注生产日期或有效日期，也有只标注出厂批号没有标日期的情况，比如日本和欧洲的洗护品、化妆品，只有批号没有标日期（有些品牌可以根据批号读取日期，在此不做一一列举）但请放心，阿福易购销售的国外商品都是符合规定的合格产品。有些喷印的日期，在运输过程中因为摩擦碰撞很容易糊掉或被碰掉，属正常现象。</div>
                                    </div>

                                    <div class="faq-h">支付问题：</div>
                                    <div class="faq-body last">
                                        <div class="faq-q">1. 当您点击确认支付后，请不要关闭新打开的页面，否则支付将无法完成。</div>
                                        <div class="faq-a"></div>

                                        <div class="faq-q">2. 如果您的支付信息银行没有及时传输给我们，导致银行卡已经扣款成功，但商品没有购买成功，我们感到非常抱歉。不过请放心，我们会在第二个工作日和银行对账，确认您的扣款成功后，在能完成购买的情况下，立刻帮您完成购买，否则相应款项会原路径返回您的支付账户。</div>
                                        <div class="faq-a"></div>

                                        <div class="faq-q">3. 打开支付页面，提示“该页无法显示”或空白页，可能是什么原因？</div>
                                        <div class="faq-a">
                                            <p>A. 没有升级IE浏览器，导致加密级别过低，无法进入银行系统。</p>
                                            <p>B. 上网环境或上网方式受限，可能是网络服务商限制，建议更换一种上网方式。</p>
                                            <p>C. 尝试刷新页面；如果刷新不能解决问题，可能由于浏览器缓存设置的原因，请在IE菜单->工具->Internet选项->点击“删除cookies”和“删除文件”，用以清除临时文件。</p>
                                        </div>

                                        <div class="faq-q">4. 银行页面打不开的解决方法？</div>
                                        <div class="faq-a">
                                            <p>A. 没有升级IE浏览器，导致加密级别过低，无法进入银行系统。</p>
                                            <p>B. 如果是个人电脑，请关闭您的防火墙再试。</p>
                                            <p>C. 在IE浏览器“工具”菜单->Internet选项->高级->安全，在SSL2.0和SSL3.0的选项前打勾。</p>
                                            <p>D. 查看密钥长度是否支持128位(IE->帮助->关于Internet Explorer)，，如果低于128，请升级密钥包。</p>
                                            <p>E. 请您把银行网址在受信任的站点中添加进去，添加方法为：打开IE浏览器->工具->Internet选项->安全->受信任的站点->站点->添加网易宝和银行的网站，重启IE浏览器登录网易宝进行相关操作。</p>
                                        </div>

                                        <div class="faq-q">5. 为什么交易付款不成功？</div>
                                        <div class="faq-a">
                                            <p>A. 由于银行返回的通知信息比较晚，超过了此次交易的超时时间，交易已关闭，不过请放心，我们会在收到银行的通知后，原路径返回您的支付账户</p>
                                            <p>B. 重复付款导致（交易状态已经是已付款状态），可能对同一笔交易重复付款，不过请放心，重复付款的金额会原路径返回到您的支付账户中。</p>
                                        </div>

                                    </div>
                                    <!--END/保税区发货FAQ-->
                                </div>
                            </div>
                        </div>
                        <div class="ui-brd-box1 bl-tab tab-skin-tline2 fn-mt20">

                            <!--购买须知-->
                            <div class="buy-declare">
                                <div class="declare-tit">购买须知</div>
                                <ul class="ol">
                                    <li>
                                        您在本（公司）网站上购买的境外商品，仅限个人自用不得进行再销售。商品本身可能无中文标签，您可以查看网站的翻译或者在线联系我们的客服。
                                    </li>
                                    <li>
                                        您购买的境外商品适用的品质、健康、标识等项目使用标准均按照原产国使用标准（比如本站所销售的欧洲奶粉为欧洲标准，所售美国奶粉为美国标准，所售澳洲奶粉则为澳洲标准），可能与我国标准有所不同，所以在使用过程中产生的危害或损失以及其他风险，将由您个人承担。
                                    </li>
                                    <li>
                                        您在本（公司）网站上购买保税仓发货的境外商品时，自动视为阿福易购代您向海关进行申报和代缴税款。
                                    </li>
                                </ul>
                            </div>
                            <!--END/购买须知-->

                            <!--猜你喜欢-->
                            <div class="js-recommend  recommend-list">
                                <div class="list-head fn-mb16">
                                    <div class="tit tit-4">
                                        <h3 class="h fn-mr10">
                                            猜你喜欢
                                        </h3>
                                        <div class="more fn-fl fn-mt4">
                                            根据您的浏览记录推荐的商品
                                        </div>
                                        <a href="javascript:;" class="js-reloadBtn more" data-step="0"><i class="icon icon-load1"></i>换一批</a>
                                    </div>
                                </div>
                                <div class="list-body"  style="height: 268px;">
                                    <ul class="bl-imglist imglist-4col js-recList ui-100">

                                        @if($similarGoods)
                                            @foreach($similarGoods as $key=>$value)
                                                <?php //dd($value->toArray());
                                                if($key<2) continue;
                                                if($key>17) break;
                                                ?>

                                                <li style="height: 268px;">
                                                    <div class="col-space fn-ohide">
                                                        <a href="/goods/{{$value->goods_id}}" target="_blank" title="{{$value->goods_name}}">
                                                            <img class="lazy img-lazyload" style="width: 200px;height: 200px;" data-src="@if($value->goods_thumb){{$pictureService->thumb($value->goods_thumb, 200, 200)}} @else # @endif" alt="">
                                                        </a>
                                                        <div class="fn-ml4 fn-mr4">
                                                            <a href="/goods/{{$value->goods_id}}" target="_blank" class="name ui-100 fn-dib-otw" title="{{$value->goods_name}}">{{$value->goods_name}}</a>
                                                            <p class="price"><span>{{$value->shop_price}}</span>元</p>
                                                        </div>
                                                    </div>
                                                </li>
                                            @endforeach
                                        @endif
                                    </ul>
                                </div>
                            </div>
                            <!--END/猜你喜欢-->


                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--END/商品介绍及评论-->
        @else
        <div class="inbox">
            <div class=" ui-brd-box1 fn-mt30">
                <div class=" bl-nodata nodata-imgtext nodata-imgtext-smaller">
                    <div class="nodata-img">
                        <img src="../images/mascot.png" alt="">
                    </div>

                    <div class="nodata-text nodata-con nodata-imgtext-small">
                        <div class="h1">抱歉，该商品已下架</div>
                        <p>建议您：</p>
                        <p>1、<a href="/search">查看热卖商品</a></p>
                        <p>2、<a href="/">随便逛逛</a></p>
                    </div>
                </div>
            </div>

            <!--猜你喜欢-->
            <?php $similarGoods = $goodsService->getRandomGoods(15);?>
            <div class="js-recommend  recommend-list ui-nobrd-t">
                <div class="list-head fn-mb16">
                    <div class="tit tit-4">
                        <h3 class="h fn-mr10">
                            猜你喜欢
                        </h3>
                        <div class="more fn-fl fn-mt4">
                            根据您的浏览记录推荐的商品
                        </div>
                        <a href="javascript:;" class="js-reloadBtn more" data-step="0"><i class="icon icon-load1"></i>换一批</a>
                    </div>
                </div>
                <div class="list-body"  style="height: 268px;">
                    <ul class="bl-imglist imglist-5col js-recList ui-100">

                        @if($similarGoods)
                            @foreach($similarGoods as $key=>$value)
                                <?php //dd($value->toArray());
                                if($key<2) continue;
                                if($key>17) break;
                                ?>

                                <li style="height: 268px;">
                                    <div class="col-space fn-ohide">
                                        <a href="/goods/{{$value->goods_id}}" title="{{$value->goods_name}}">
                                            <img class="lazy img-lazyload" style="width: 200px;height: 200px;" data-src="@if($value->goods_thumb){{$pictureService->thumb($value->goods_thumb, 200, 200)}} @else # @endif" alt="">
                                        </a>
                                        <div class="fn-ml4 fn-mr4">
                                            <a href="/goods/{{$value->goods_id}}" class="name ui-100 fn-dib-otw" title="{{$value->goods_name}}">{{$value->goods_name}}</a>
                                            <p class="price"><span>{{$value->shop_price}}</span>元</p>
                                        </div>
                                    </div>
                                </li>
                            @endforeach
                        @endif
                    </ul>
                </div>
            </div>
            <!--END/猜你喜欢-->
        </div>
        @endif
        <!--END/页面主体-->


<!--END/内容部分-->

        <!--右侧浮动导航-->
        <div id="rightBar" class="js-cart right-bar">
            <ul>
                <li id="js-cart" class="js-cart reset-skin cart">
                    <a target="_blank" href="/cart">
                        <i class="icon icon-bar-6"></i>
                        <p class="text">购物车</p>
                        <i class="icon icon-bar-9 cart-num">{{$total_number}}</i>
                        <span class="borb"></span>
                    </a>
                </li>
                <li class="reset-skin online-service">
                    <a class="text-color-9" href="http://wpa.qq.com/msgrd?v=3&uin=3039215126&site=qq&menu=yes" target="_blank" title="在线客服">
                        <i class="icon icon-qq-red"></i>
                        <span class="borb"></span>
                    </a>
                </li>
                <li class="reset-skin go-top">
                    <a href="#" class="js-goTop" title="返回顶部">
                        <i class="icon icon-bar-8"></i>
                    </a>
                </li>
            </ul>
        </div>
        <!--右侧浮动导航-->

<script id="commentTpl" type="text/html">
    <li class="item fn-ohide" data-id="${id}">
        <div class="l-con">
            <p class="txt"><span class="bl-label label-primary">${label}</span>${content}</p>


            <!--图片预览模块-->
            <div class="pic-box js-picPreview">
                <ul class="fn-ohide">
                    ${pictureHtml}
                    <!--<li><img class="thumb" data-big="../images/classify/pic-8.jpg" src="../images/classify/pic-8.jpg" alt=""></li>-->
                </ul>
                <div class="preview-box">
                    <div class="close">×</div>
                    <img src="" alt="">
                </div>
            </div>
            <!--END/图片预览模块-->

            <p><span class="more">${add_time}</span><span class="fn-hide more">商品规格：000</span></p>
        </div>
        <div class="r-con">
            <p class="txt">${user_name}</p>
            <div class="show-score">
                <div class="fn-dib bl-score" data-score="0">
                    ${star}
                </div>
                <span class="score-tip"></span>
            </div>
        </div>
    </li>
</script>

<script type="text/html" id="couponTpl">
    <p class="t-gray0 size14">您正在免费领取</p>
    <p class="fn-mt10 size20"><span class="t-red1">${num}</span>张   <span class="t-red1">${name}  ${price}元</span>优惠券（${reg}）</p>
    <p class="fn-mt20 small t-gray6 size12">
        优惠劵有效期至${time} <br>
        每个ID限领${num}张
    </p>
</script>
<!--公共尾部-->
@include('front.common.footer')

        <!--END/公共尾部-->


<!--公用js引用-->
@include('front.common.script')
        <?php $OSS_CDN_HOST=env('OSS_CDN_HOST','') ?>
        <!--END/公用js引用-->
        <script src="{{asset('/dist/js/fly/fly.js')}}"></script>
        <script src="{{asset('/dist/js/fly/requestAnimationFrame.js')}}"></script>
        <script src="{{asset('/dist/js/scroll.js')}}"></script>
        <script src="{{asset('/dist/js/jquery.jqzoom.js')}}"></script>
        <script src="{{asset('/dist/js/location.js')}}"></script>
        <script src="{{asset('/dist/js/detail.js')}}"></script>

        <script type="text/javascript">
            //领取优惠券
            $('.J-getCoupon').on('click',function(){
                var btn=$(this),
                        id=btn.data('id'),
                        name=btn.data('name'),
                        time=btn.data('time'),
                        reg=btn.data('reg'),
                        price=btn.data('price'),
                        num=btn.data('num');

                var data={
                    id:id,
                    name:name,
                    time:time,
                    reg:reg,
                    price:price,
                    num:num
                };

                var tpl =$('#couponTpl').html();
                var html =tools.htmlTemplate(tpl,data);

                //询问框
                layer.confirm(html, {
                    title:'提示',
                    btn: ['确定','取消'] //按钮
                }, function(){
                    //ajax
                    var dataForm = {};
                    var urls = "/my/coupon";
                    dataForm.coupon_id = id;

                    $.ajax({
                        type: "POST",
                        url: urls,
                        data: dataForm,
                        dataType: "json",
                        headers: {
                            'X-CSRF-Token': "{{csrf_token()}}"
                        },
                        async:true,
                        cache:false,
                        success: function (msg) {
                            if(msg.status){
                                layer.msg('领取成功', {icon: 1});
                            }//end if()

                        }
                    }); //end ajax

                }, function(){});
            });

            //
            $('#TipDiscount').click(function () {
               layer.alert($(this).data('title'));
            });

        </script>

        <script type="text/javascript">
            var page_global={
                addCart_url:'/cart',
                fastPay_url:'/order?from=detail',
                check_url:'/cart/fast_pay'
            };

            $('.J-selParam').on('click','.list-tags li',function(){
                var that=$(this);
                var tags=$('.list-tags'),idArr=[];

                if(that.hasClass('disabled')) return false;
                that.addClass('on').siblings('li').removeClass('on');

                for(var i=0;i<tags.length;i++){
                    idArr.push(tags.eq(i).find('.on').data('id'));
                }

                $.ajax({
                    url:'/goods/attribut_value_redirect/{{@$goods->goods_id}}',
                    type:'get',
                    dataType:'json',
                    data:{attributValueArr:idArr},
                    success:function(res){
                        if(res.status){
                            window.location.href=window.location.origin+'/'+res.data;
                        }else{
                            layer.alert(res.message);
                        }
                    }
                });
            });

        </script>
</body>
</html>